<template>
  <div class="loading-container">
    <el-spin class="loading-spinner" />
    <p class="loading-text">{{ text }}</p>
  </div>
</template>

<script setup lang="ts">
defineProps<{
  text?: string
}>()
</script>

<style scoped>
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loading-spinner {
  font-size: 32px;
}

.loading-text {
  margin-top: 10px;
  color: #909399;
}
</style> 